<?php

class settings_m_core {
    public function __construct($rows){
        
        foreach($rows as $row){            
            $obj = new setting_m_core();
            $obj->default = $row->default;
            $obj->value = $row->value;
            $obj->name = $row->setting_name;
            $this->{$row->setting_name} = $obj;
        }
    }
}
?>
